﻿namespace Out.Service.Services
{
    public class ResResult<T>
    {
        public ResResult()
        {

        }

        public ResResult(Result result, string message = "")
        {
            Result = result;
            Message = message;
        }

        public ResResult(Result result, T response, string message = "")
        {
            Result = result;
            Message = message;
            Response = response;
        }

        public Result Result { get; set; }

        public string Message { get; set; } = "";

        public T Response { get; set; }
    }

    public class ResResult
    {
        public ResResult()
        {

        }

        public ResResult(Result result, string message = "")
        {
            Result = result;
            Message = message;
        }

        public Result Result { get; set; }

        public string Message { get; set; } = "";
    }

    public enum Result
    {
        成功 = 1,
        失败 = 2,
        未返回 = 3,
        条件不足未执行 = 4
    }
}